package cn.edu.dzkd.software.mapper;

import cn.edu.dzkd.software.pojo.Department;
import cn.edu.dzkd.software.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper {

    List<Department> selectDepartments(@Param("index") int index,
                           @Param("departmentName") String departmentName,
                           @Param("departCreateTime") String departCreateTime);

    List<Department> selectAllDepartments();

    int selectDepartmentCounts(@Param("departmentName") String departmentName,
                         @Param("departCreateTime") String departCreateTime);

    void insert(Department department);

    void update(Department department);

    void delete(Integer id);

}
